home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr27 / gs26.zip / UNPROT.PS < prev    next >
Text File  |  1992-05-25  |  2KB  |  59 lines

  1. %    Copyright (C) 1991, 1992 Aladdin Enterprises.  All rights reserved.
  2. %    Distributed by Free Software Foundation, Inc.
  3. %
  4. % This file is part of Ghostscript.
  5. %
  6. % Ghostscript is distributed in the hope that it will be useful, but
  7. % WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. % to anyone for the consequences of using it or for whether it serves any
  9. % particular purpose or works at all, unless he says so in writing.  Refer
  10. % to the Ghostscript General Public License for full details.
  11. %
  12. % Everyone is granted permission to copy, modify and redistribute
  13. % Ghostscript, but only under the conditions described in the Ghostscript
  14. % General Public License.  A copy of this license is supposed to have been
  15. % given to you along with Ghostscript so you can know your rights and
  16. % responsibilities.  It should be in a file named COPYING.  Among other
  17. % things, the copyright notice and this notice must be preserved on all
  18. % copies.
  19.  
  20. % Disable all access checks.  This is useful for printing out
  21. % eexec-encrypted Type 1 fonts, and similar purposes.
  22.  
  23. systemdict wcheck not
  24.  { (Please restart Ghostscript with the -dWRITESYSTEMDICT switch.\n) print
  25.    stop
  26.  } if
  27.  
  28. systemdict begin
  29.    /readonly. /readonly load def
  30.    /executeonly. /executeonly load def
  31.    /noaccess. /noaccess load def
  32.    /readonly { } odef
  33.    /readonly.. /readonly load def
  34.    /executeonly { } odef
  35.    /executeonly.. /executeonly load def
  36.    /noaccess { } odef
  37.    /noaccess.. /noaccess load def
  38. end
  39.  
  40. % Disable the access checks.
  41.  
  42. /unprot
  43.  { systemdict begin
  44.    /readonly /readonly.. load def
  45.    /executeonly /executeonly.. load def
  46.    /noaccess /noaccess.. load def
  47.    end
  48.  } bind def
  49.  
  50. % Re-enable the access checks.
  51.  
  52. /reprot
  53.  { systemdict begin
  54.    /readonly /readonly. load def
  55.    /executeonly /executeonly. load def
  56.    /noaccess /noaccess. load def
  57.    end
  58.  } bind def
  59.